package com.house.health.mapper;

import com.house.health.domain.Announcement;
import com.house.health.domain.House;
import com.house.health.domain.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author DuanChangSuo
 * @date 2023/4/14 10:52
 * @description 类的描述和介绍
 **/
@Mapper
public interface AnnouncementMapper {
    /**
     * 添加公告
     * @param anno
     * @return
     */
    public int addAnnouncement(Announcement anno);

    public List<Announcement> findAllAnnouncement();

    /**
     * 通过公告回显公告内容
     * @param id
     * @return
     */
    public Announcement findAnnouncementDetailById(int id);

    public int updateAnnouncement(Announcement announcement);

    public int deleteAnnouncement(int hID);
}
